package com.iot.dao;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.iot.domain.Album;
import com.iot.domain.AlbumVo;
import com.iot.domain.MvFile;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;
import java.util.Set;

public interface RedisDao {


    // 保存照片到数据到redis对应的相册
    public  void  saveFile(Album album) throws JsonProcessingException;

    /*获取所有的文件*/
    public Set<String> findAllPicture();

    /*判断是否存在相册*/
    public Boolean existAlbum(String albumName);


    /*通过相册名获取相册的照片*/
     public  Album findPictureByAlbumName(String albumName) throws IOException;


     /*找到创建的所有的相册*/
    public List<AlbumVo> findAllAlbum() throws IOException;

    /*为指定的相册上传照片*/
    public void uploadPictureByName(String albumName,List<MvFile> files) throws JsonProcessingException;


}
